<jsp:include page="/header.jsp" />
            <form name="form1" action="" method="post">
                <div dojoType="dijit.layout.ContentPane" region="center">
                    <div dojoType="dijit.form.Form" id="myForm" jsId="myForm"
                         encType="multipart/form-data" action="" method="POST">
                        <table style="border: 1px solid #9f9f9f;" cellspacing="10">
                            <tr>
                                <td>
                                    <label for="txtLogin">Email:</label>
                                </td>
                                <td>
                                    <input type="text" id="email" name="email"
                                           required="true" dojoType="dijit.form.ValidationTextBox" promptMessage="Digite o Login!"
                                           invalidMessage="Digite o Login!" required="true" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <label for="txtSenha">Senha:</label>
                                </td>
                                <td>
                                    <input type="password" id="password" name="password"
                                           dojoType="dijit.form.ValidationTextBox" invalidMessage="Digite a Senha" required="true" />
                                </td>
                            </tr>
                        </table>
                        <%
							String qtde = request.getParameter("qtde");
                            String valor = request.getParameter("valor");
                            String id = request.getParameter("id");
                            String produto = request.getParameter("produto");
                            if(request.getAttribute("erro") != null){
								out.println(request.getAttribute("erro"));
                            }

                        %>
                        <button dojoType="dijit.form.Button" type="submit" name="btnLogar" value="Logar" onclick="form1.action='Servlet?logica=Login&fwdFail=login.jsp&fwdSuccess=pagamento.jsp&id=<%=id%>&qtde=<%=qtde%>&valor=<%=valor%>&produto=<%=produto%>'">Logar</button>
                    </div>
                </div>
            </form>
<jsp:include page="/footer.jsp" />
